From 5afd6596ba4e152e3b15b1b8d9430dc032de723d Mon Sep 17 00:00:00 2001 From: "emellor@leeni.uk.xensource.com" Date: Sun, 7 May 2006 14:00:05 +0100 Subject: [PATCH] Fix console runaway detection for the smallmem_neg test, following the changes to have Console included as part of the Domain object. Signed-off-by: Ewan Mellor --- tools/xm-test/tests/create/16_create_smallmem_neg.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tools/xm-test/tests/create/16_create_smallmem_neg.py b/tools/xm-test/tests/create/16_create_smallmem_neg.py index 5bbaa6f704..9990add78c 100644 --- a/tools/xm-test/tests/create/16_create_smallmem_neg.py +++ b/tools/xm-test/tests/create/16_create_smallmem_neg.py @@ -14,11 +14,9 @@ domain = XmTestDomain(extraConfig={"memory": MEM, try: console = domain.start() + console.runCmd("ls") except DomainError, e: FAIL("Unable to start a domain with %i MB" % MEM) - -try: - console.runCmd("ls") except ConsoleError, e: if e.reason == RUNAWAY: print "Domain with %i MB has runaway console as expected" % MEM -- 2.30.2